package com.yiya.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yiya.bean.Company;
import com.yiya.model.CompanyCplex;
import com.yiya.model.CompanyCplexModel;
import com.yiya.model.CompanyExample;

public interface CompanyMapper {
    int countByExample(CompanyExample example);

    int deleteByExample(CompanyExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Company record);

    int insertSelective(Company record);

    List<Company> selectByExample(CompanyExample example);

    Company selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Company record, @Param("example") CompanyExample example);

    int updateByExample(@Param("record") Company record, @Param("example") CompanyExample example);

    int updateByPrimaryKeySelective(Company record);

    int updateByPrimaryKey(Company record);
    
    /**
     * 获取公司
     * @param model
     * @return
     */
    List<CompanyCplex> selectByModel(CompanyCplexModel model);
    
    /**
     * 获取公司记录总数
     * @param model
     * @return
     */
    int countByModel(CompanyCplexModel model);
    
    /**
     * 获取公司、无分页
     * @param model
     * @return
     */
    List<CompanyCplex> selectCompany(CompanyCplexModel model);
    
    List<Company> selectExpireCompany();
}